package com.eastcode.mobile.server.user.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;

/**
 * 短信
 * 
 * @author 王一进
 * 
 */
@Cached
public class Sms implements Serializable {

	private static final long serialVersionUID = -443118063110237224L;

	/** 主键 **/
	@Id
	private Long id;

	/** 记录在设备上的主键编码 **/
	private String clientKey;

	/** 用户ID **/
	private String userId;

	/** 发信者号码 **/
	private String senderNumber;

	/** 发信者 **/
	private String sender;

	/** 收信者号码 **/
	private String receiverNumber;

	/** 收信者 **/
	private String receiver;

	/** 短信内容 **/
	private String message;

	/** 类型:1->收信, 2->发信 **/
	private String type;

	/** 创建时间 **/
	private Date createTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getClientKey() {
		return clientKey;
	}

	public void setClientKey(String clientKey) {
		this.clientKey = clientKey;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getSenderNumber() {
		return senderNumber;
	}

	public void setSenderNumber(String senderNumber) {
		this.senderNumber = senderNumber;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getReceiverNumber() {
		return receiverNumber;
	}

	public void setReceiverNumber(String receiverNumber) {
		this.receiverNumber = receiverNumber;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
